﻿using Smobiler.Core;
using Smobiler.Core.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FubiManger.Controls;
namespace FubiManger.UI
{
    partial class TestForm : Smobiler.Core.Controls.MobileForm
    {
        public TestForm() : base()
        {
            //This call is required by the SmobilerForm.
            InitializeComponent();
        }
        string week { get; set; }
        private void TestForm_Load(object sender, EventArgs e)
        {
            Dayofweek();
            lbldate.Text = calend.SelectDate.Month.ToString()+"月"+calend.SelectDate.Day.ToString()+"日"+ week;
        }

        private void calend_DateChanged(object sender, EventArgs e)
        {
            Dayofweek();
            lbldate.Text = calend.SelectDate.Month.ToString() + "月" + calend.SelectDate.Day.ToString() + "日" +week;
        }

        private void Dayofweek()
        {
            switch (calend.SelectDate.DayOfWeek.ToString())
            {
                case "Monday":
                    week = "周一";
                    break;
                case "Tuesday":
                    week = "周二";
                    break;
                case "Wednesday":
                    week = "周三";
                    break;
                case "Thursday":
                    week = "周四";
                    break;
                case "Friday":
                    week = "周五";
                    break;
                case "Saturday":
                    week = "周六";
                    break;
                case "Sunday":
                    week = "周日";
                    break;





            }
        }

        private void button1_Press(object sender, EventArgs e)
        {
            this.Client.PlayAudio("333.mp3", @"E:\000声卡文件不要删除~~~\定制效果\Mixdown\");
            //calendcontrol con = new calendcontrol();
            //this.Form.ShowDialog(con);
        }
    }
}